import keyword
import time
import numpy as np
from sy import SuYu

def add_numbers(a, b):
    result = a + b
    return result

# print({x: x**2 for x in (2, 4, 6)})

# 创建 OpenAI 类的实例
suyu = SuYu()

# u
# 调用 OpenAI 类的方法
suyu.generate_text("Tell me a joke.")


# \使用多行语句
total = "item_one" + \
        "item_two" + \
        "item_three"


total = ['item_one', 1, 'item_three',
         'item_four', 'item_five']

import array
my_array = array.array('i', [1, 2, 3, 4])  # 'i' 表示整数类型
print(my_array)  # 输出: array('i', [1, 2, 3, 4])

# 创建一个一维数组
arr = np.array([1, 2, 3, 4, 5])
print("一维数组：", arr)

# 创建一个二维数组
matrix = np.array([[1, 2, 3], [4, 5, 6]])
print("二维数组：\n", matrix)

# 数组操作
print("数组加法：", arr + 1)
print("数组乘法：", arr * 2)

print(add_numbers(2,1));